package com.yuandian.business.monitor.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuandian.api.business_monitor.entity.MonitorOverview;
import com.yuandian.api.business_monitor.po.ItSegmentDataParams;
import com.yuandian.api.business_monitor.vo.MonitorOverviewVo;
import com.yuandian.business.monitor.mapper.MonitorOverviewMapper;
import com.yuandian.business.monitor.service.IMonitorOverviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 说明：监控概况service实现
 *
 * @Author yanjun
 * @Date 2020/9/22 14:10
 */
@Service
public class MonitorOverviewServiceImpl extends ServiceImpl<MonitorOverviewMapper, MonitorOverview>
		implements IMonitorOverviewService {

	@Autowired
	private MonitorOverviewMapper monitorOverviewMapper;

	/**
	 * 查询监控概况
	 *
	 * @return 监控概况vo对象
	 */
	@Override
	public MonitorOverviewVo queryRecentMonitorOverview(ItSegmentDataParams params) {
		return monitorOverviewMapper.queryRecentMonitorOverview(params);
	}
}
